#!usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author:zhuyan
@file: json_demo.py
@time: 2018/09/04
"""
import json


class JsonUtil:

    def loads__(self):
        data = '[{"age":1, "name":"emily"}, {"age":2, "name":"zhuyan"}]'
        ldict = json.loads(data)
        print(type(ldict))
        print(type(ldict[0]))
        print(ldict[0]["name"])



if __name__ == "__main__":
    jsonutil = JsonUtil()
    jsonutil.loads__()
